from gluoncv import model_zoo, data, utils
import matplotlib.pyplot as plt

net = model_zoo.get_model('yolo3_darknet53_voc', pretrained=True)

x, img = data.transforms.presets.yolo.load_test('/Users/hardy/test3.jpeg')

class_IDs, scores, bounding_boxs = net(x)

utils.viz.plot_bbox(img, bounding_boxs[0],scores[0], class_IDs[0],class_names=net.classes)

plt.show()
